package com.slicktechnologies.shared.common.businessprocesslayer;

import java.util.Date;

import com.googlecode.objectify.annotation.Index;
import com.slicktechnologies.shared.common.businessunitlayer.BusinessUnit;
import com.slicktechnologies.shared.common.helperlayer.PersonInfo;

public class Invoice extends ConcreteBusinessProcess {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7776763409332837143L;

	/**
	 * 
	 */
	public final String PAID="Paid",UNPAID="Unpaid",CREATED="Created",APPROVED="Approved";
	
	@Index
	protected PersonInfo personInfo;
	protected double amount;
	@Index
	protected int contractId;
	protected String paymentMethod;
	
	
	
	
	
	


	public int getContractId() {
		return contractId;
	}


	public void setContractId(int contractId) {
		this.contractId = contractId;
	}


	public Invoice() {
		super();
		paymentMethod="";
	}
	
	
	public PersonInfo getPersonInfo() {
		return personInfo;
	}
	public void setPersonInfo(PersonInfo personInfo) {
		this.personInfo = personInfo;
	}
	public double getAmount() {
		return amount;
	}
	public void setAmount(double amount) {
		this.amount = amount;
	}
	public String getPAID() {
		return PAID;
	}
	public String getUNPAID() {
		return UNPAID;
	}
	public String getCREATED() {
		return CREATED;
	}
	public String getAPPROVED() {
		return APPROVED;
	}
	public Long getCellNumber() {
		return personInfo.getCellNumber();
	}
	public String getFullName() {
		return personInfo.getFullName();
	}
	public int getCount() {
		return personInfo.getCount();
	}


	public void setCellNumber(Long cellNumber) {
		personInfo.setCellNumber(cellNumber);
	}


	public void setFullName(String fullName) {
		personInfo.setFullName(fullName);
	}


	public void setCount(int id) {
		personInfo.setCount(id);
	}


	public void setPaymentMethod(String value) {
		if(value!=null)
			this.paymentMethod=value.trim();
		
	}
	
	
	
	
	
	

}
